<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function Star(uname,age){
            this.uname=uname
            this.age=age
        }
        //Star构造函数new一个新对象
        const star= new Star()
        //找到原型对象 star.__proto__
        //找到Star构造函数原型对象 Star.prototype
        console.log(star.__proto__===Star.prototype);
        //从Star构造函数原型对象找到构造函数 Star.prototype.constructor
        console.log(Star.prototype.constructor===Star);
        //实例化对象找到Object的原型对象 star.__proto__.__proto__
        //Object找到Object的原型对象  Object.prototype
        //Object的原型对象找到Object  Object.prototype.constructor
        console.log(Object.prototype===star.__proto__.__proto__);



        
        


        

    </script>
</body>
</html>